import request from '@/api/request';

/**
 * 获取访问路径（私有空间）
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const ossListSignUrlApi = query => {
    return request({
        url: '/api/setup/oss/listSignUrl',
        method: 'get',
        params: query,
        isLoading: true
    });
};

/**
 * 文件上传.
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const ossUploadFileApi = query => {
    return request({
        url: '/api/setup/oss/uploadFile',
        method: 'post',
        data: query,
        isLoading: true
    });
};
